<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterMovieOrderPlanType extends Migrator
{
    public function up()
    {
        $sql = <<<SQL
ALTER TABLE `movie_order`
ADD COLUMN  `plan_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '语言和2、3D';
SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $this->table('movie_order')->removeColumn('plan_type');
    }
}
